


struct RingBuf
{
	unsigned int SetPos;
	unsigned int GetPos;
	unsigned int Length;
	unsigned int Content;
	unsigned char *Data;
};


void InitBuffer(struct RingBuf *Buf, unsigned int pLen, unsigned char *pData);
void AddByte(struct RingBuf *Buf, unsigned char Data);
unsigned char GetByte(struct RingBuf *Buf);
